chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig
[--add][--del][--list][系统服务] 或 chkconfig [--level ][系统服务...
分类:
系统相关 时间:
2014-05-15 10:28:17
阅读次数:
406
题意:将已排序的链表中所有重复的元素移除
思路:
三个个指针,pre, cur, next
一个布尔变量is_appear,表示cur指针指向的值之前是否已经出现过
检查cur, next指向的节点的值是否相同,
相同的话,删除cur
不同的话,如果is_appear为true,删除cur,否则不删除
删除的话,只移动cur, next指针
不删除的话,要移动pre, cur, next三个指针
复杂度:时间O(n),空间O(1)...
分类:
其他好文 时间:
2014-05-15 02:54:32
阅读次数:
262
The web.config file can be used to set a
default document, or list of default documents for your website. Web.config can
be used to change the defau.....
分类:
Web程序 时间:
2014-05-15 02:21:15
阅读次数:
448
grep 命令是一个很常用的命令,主要的用法如下:
格式: grep [options]
^ 锚定行的开始
eg;
jiangjian@jiangjian-K42JZ:~/sh$ grep '^data' data2
data11,data12,data13
data21,data22,data23
data31,data32,data33
jiangjian@jiang...
分类:
其他好文 时间:
2014-05-15 01:43:05
阅读次数:
329
sed-i"s/123/456/g"`grep123-rl./|grep-vlog`#把当前目录下所有文件中的123替换成456,包括子目录啊
分类:
其他好文 时间:
2014-05-15 00:57:04
阅读次数:
236
LAMP系列之PHP编译过程中常见错误信息的解决方法在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法:*******************************************************************************checkingforBZip2..
分类:
Web程序 时间:
2014-05-15 00:51:58
阅读次数:
445
Linked List Cycle
Total Accepted: 17148 Total
Submissions: 49300My Submissions
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra sp...
分类:
其他好文 时间:
2014-05-15 00:13:50
阅读次数:
279
Linked List CycleGiven a linked list, determine
if it has a cycle in it.Follow up:Can you solve it without using extra
space?做完Linked List Cycle II在做这...
分类:
其他好文 时间:
2014-05-14 23:30:00
阅读次数:
399
1.查看程序对应进程号:ps–ef|grep进程名2.Linux下查看端口号所使用的进程号:使用lsof命令:lsof–i:端口号
分类:
系统相关 时间:
2014-05-14 22:55:34
阅读次数:
483
# 非波拉锲数列def fibs(num): the_list=[] a,b,i=0,1,1 for
i in range(num-1): a,b=b,a+b print bfibs(10)
分类:
编程语言 时间:
2014-05-14 22:00:27
阅读次数:
290